import 'package:flutter/material.dart';

class BtmNavigation extends StatelessWidget {
  int current = 0;
  dynamic onTabFuns;

  List<BottomNavigationBarItem> itemList;

  BtmNavigation({this.current, this.onTabFuns, this.itemList});

  @override
  Widget build(BuildContext context) {
    if (itemList == null) {
      return null;
    }
    // TODO: implement build
    return BottomNavigationBar(
        currentIndex: current,
        onTap: (int index) {
          if (onTabFuns == null) {
            return;
          }
          onTabFuns(index);
        },
        elevation: 0,
        selectedItemColor: Color(0XFF00A5F1),
        backgroundColor: Colors.white,
        items: itemList);
  }
}
